package test.netease.version3.chapter3.lesson_3_2_1;

/**
 * @author zhangrui
 * @date 2020-06-03 22:07
 * @since 1.0
 */
public class HelloService {

    public static String value = getValue();

    static {
        System.out.println("静态代码块运行");
    }

    private static String getValue() {
        System.out.println("静态方法被运行");
        return "netease";
    }


    public void test() {
        System.out.println("hello11111111.." + value);
    }

}
